<template>
    <div class='container'>
        <h2>Movie</h2>

        <p>您正在观看的第一部电影是：{{$route.query.name}}</p>
        <p>这个电影的id: {{$route.query.id}}</p>
        <button @click="$router.go(-1)">后退</button>
        <button @click="$router.push('/home')">首页</button>
    </div>
</template>


<script>
export default {
    name:'MyMovie',
    components: {},
    data() {
        return {}
    },
    computed: {},
    watch: {},
    methods: {

    },
}
</script>


<style scoped>
.container{
    min-height: 200px;
    background-color: pink;
}
</style>